<?php	
	$data= $employer[0];	

?>
<div class="row-fluid sortable ui-sortable">
	<div class="box span12">
		<div class="box-header" data-original-title="">
			<h2><i class="icon-edit"></i><span class="break"></span>Thông tin nhà tuyển dụng</h2>
			<div class="box-icon">
				<a href="#" class="btn-setting"><i class="icon-wrench"></i></a>
				<a href="#" class="btn-minimize"><i class="icon-chevron-up"></i></a>
				<a href="#" class="btn-close"><i class="icon-remove"></i></a>
			</div>
		</div>
		<div class="box-content">
			<?php
				if ($status == 0)
				{
			?>
			<div class="alert alert-success">
				<button type="button" class="close" data-dismiss="alert">×</button>
				<strong>Bạn </strong>đã cập nhật thành công!.
			</div>
			<?php
				}elseif ($status == 1){
			?>
			<div class="alert alert-error">
				<button type="button" class="close" data-dismiss="alert">×</button>
				<strong>Bạn </strong> cập nhật thất bại, thử lại lần nữa.
			</div>
			<?php		
				}
			?>
			<form class="form-horizontal" method="POST" action="/backend/employers/update" name="frm_employers" id ="frm_employers" enctype="multipart/form-data">
				<input class="input-xlarge focused" id="ip_employer" name="ip_employer" type="hidden" value="<?php echo $data["id"]?>"		
				<fieldset>				
				<div class="control-group">
					<label class="control-label" for="focusedInput">Tên nhà tuyển dụng</label>
					<div class="controls">
					  <input class="input-xlarge focused" id="ip_name" name="ip_name" type="text" value="<?php echo $data["name"]?>">
					</div>
				</div>

				<div class="control-group">
					<label class="control-label" for="focusedInput">Địa chỉ</label>
					<div class="controls">
					  <input class="input-xlarge focused" id="ip_address" name="ip_address" type="text" value="<?php echo $data["address"]?>">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="focusedInput">Logo </label>
					<div class="controls">					  
					  <div class="uploader" id="uniform-fileInput"><input class="input-file uniform_on" id="ip_logo" type="file"><span class="filename" style="-webkit-user-select: none;">No file selected</span><span class="action" style="-webkit-user-select: none;">Choose File</span></div>
					</div>
				</div>	
				<div class="control-group">
					<label class="control-label" for="focusedInput">Website  </label>
					<div class="controls">
					  <input class="input-xlarge focused" id="ip_website" name="ip_website"  type="text" value="<?php echo $data["website"]?>">
					</div>
				</div>	

				<div class="control-group">
					<label class="control-label" for="focusedInput">Tên người liên hệ </label>
					<div class="controls">
					  <input class="input-xlarge focused" id="ip_name_contact" name="ip_name_contact" type="text" value="<?php echo $data["name_contact"]?>">
					</div>
				</div>	

				<div class="control-group">
					<label class="control-label" for="focusedInput">Điện thoại liên hệ </label>
					<div class="controls">
					  <input class="input-xlarge focused"id="ip_phone" name="ip_phone" type="text" value="<?php echo $data["phone"]?>">
					</div>
				</div>							

				<div class="control-group">
					<label class="control-label" for="focusedInput">Email liên hệ</label>
					<div class="controls">
					  <input class="input-xlarge focused"id="ip_email" name="ip_email" type="text" value="<?php echo $data["email"]?>">
					</div>
				</div>	

								
				<div class="control-group hidden-phone">					  
					  <label class="control-label" for="focusedInput">Mô tả</label>
					  <div class="controls">
						<textarea class="cleditor" id="ip_desc" name="ip_desc" rows="3"><?php echo $data["desc"]?></textarea>
					  </div>
				</div>
				
				  
				  <div class="form-actions">
					<button type="submit" class="btn btn-primary">Cập nhật</button>
					<button class="btn">Hủy</button>
					<button class="btn btn-primary noty" data-noty-options="{&quot;text&quot;:&quot;This is an error notification&quot;,&quot;layout&quot;:&quot;topRight&quot;,&quot;type&quot;:&quot;error&quot;}"><i class="icon-bell icon-white"></i> Top Right</button>
				  </div>
				</fieldset>
			</form>
		</div>
	</div><!--/span-->
</div>			
		